Skip to content

Conversation

@aasandei-vsp
Copy link
Contributor

@aasandei-vsp aasandei-vsp commented Oct 2, 2025

This is the main story tackled here: https://permanent.atlassian.net/browse/PER-10107
This story was more of a collateral need and has been done in this PR as well: https://permanent.atlassian.net/browse/PER-10306

STEPS TO TEST
OBSERVATION: Unlisted share links will be provided, because as of now we do not have a way of creating unlisted shares from the UI.
Record as unlisted share:

  1. Open an incognito window in the browser or make sure you are not logged in
  2. Paste in the browser the link: https://dev.permanent.org/share/1e258bb5a7570930cb3f6bbd033db44a19aca23aefdddd5d9d3120498e9fe161
  3. The preview of the record will appear
  4. Click on the record thumbnail
  5. The modal with details will appear, click on the download button/resize buttons
  6. Click the back button

Folder as unlisted share:

  1. Open an incognito window in the browser or make sure you are not logged in
  2. Paste in the browser the link: https://dev.permanent.org/share/79b30dfc326662ebba22146b131b4dc7769cc7629344fe248113c53d844dc4e9
  3. The preview of the folder will appear, thumbnails for all the records
  4. Click on the first record thumbnail
  5. The modal with details will appear, click on the download button/resize buttons
  6. Click on the forward and back arrows from the image in order to navigate through all the files in the folder
  7. Click the back button

Expired unlisted share:

  1. Open an incognito window in the browser or make sure you are not logged in
  2. Paste in the browser the link: https://dev.permanent.org/share/a99ca24389c92c7379e78ab7e2318845a0e4bd42b1995e78f74ac37b79dbfd0f
  3. A screen with the error message will appear stating that the link is wrong or expired

EXTRA TESTS FOR EXISTING SHARE LINK BEHAVIOUR
This tests would be useful to make sure that while developing this new feature, we did not introduce any new bugs or created regressions.

Auto-approve share link:
1 .Create account or sign in to account A
2. Upload a file
3. Create a share link for the uploaded file
4. Copy the link
5. Open a new browser instance
6. Create or sign in to a different account B
8. Paste the link in the browser where the account B is signed in
9. The share link preview will appear, with the "Accept Share" button at the bottom of the screen

Video for reference(can only be viewed in Chrome):
auto-approve-share-link.webm

Request access share link:
1 .Create account or sign in to account A
2. Upload a file
3. Create a share link for the uploaded file
4. Copy the link
5. Open a new browser instance
6. Create or sign in to a different account B
8. Paste the link in the browser where the account B is signed in
9. The share link preview will appear, with the "Request Access" button at the bottom of the screen

Video for reference(can only be viewed in Chrome):
request-access-share-link.webm

Try to access share link with no account:
1 .Create account or sign in to account A
2. Upload a file
3. Create a share link for the uploaded file
4. Copy the link
5. Open a new browser instance in incognito mode
8. Paste the link in the browser
9. The share link preview will appear, with an overlay and a modal asking you to create an account or log in

Video for reference(can only be viewed in Chrome):
no-account-share-link.webm

@codecov
Copy link

codecov bot commented Oct 2, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 47.05%. Comparing base (23fe1db) to head (7cafd9f).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...omponents/share-preview/share-preview.component.ts 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #741      +/-   ##
==========================================
+ Coverage   46.64%   47.05%   +0.40%     
==========================================
  Files         372      372              
  Lines       11373    11373              
  Branches     1881     1881              
==========================================
+ Hits         5305     5351      +46     
+ Misses       5891     5838      -53     
- Partials      177      184       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aasandei-vsp aasandei-vsp marked this pull request as draft October 2, 2025 12:53
@aasandei-vsp aasandei-vsp removed the request for review from liam-lloyd October 10, 2025 09:19
@aasandei-vsp aasandei-vsp self-assigned this Oct 10, 2025
@aasandei-vsp aasandei-vsp force-pushed the PER-10311-unlisted-share-no-account branch 2 times, most recently from 2a2d1dc to bf19184 Compare October 13, 2025 08:14
@aasandei-vsp aasandei-vsp marked this pull request as ready for review October 13, 2025 10:00
Copy link
Member

@cecilia-donnelly cecilia-donnelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me. For @omnignorant , the main difference here is that we don't show the "Create account" dialog for unlisted shares (for a non-logged-in user).

@aasandei-vsp aasandei-vsp force-pushed the PER-10311-unlisted-share-no-account branch from 5ffc978 to 692470b Compare October 15, 2025 11:38
@cecilia-donnelly
Copy link
Member

@omnignorant gave the +1 to merge this without QA.

@aasandei-vsp aasandei-vsp force-pushed the PER-10311-unlisted-share-no-account branch from 692470b to 7cafd9f Compare October 16, 2025 09:18
@aasandei-vsp aasandei-vsp merged commit f7b359a into main Oct 16, 2025
6 of 7 checks passed
@aasandei-vsp aasandei-vsp deleted the PER-10311-unlisted-share-no-account branch October 16, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants